package com.antt.cn.test2.http.utils;

import com.antt.cn.test2.http.retrofit.BaseResponse;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

/**
 * Created by baichuan on 2017/4/21.
 */

public  interface BaseCall {

    /**
     * getOfMap ()
     *
     * @param path
     * @param map
     * @return
     */
    @GET("{path}")
    Call<BaseResponse> getOfMap(@Path("path") String path, @QueryMap Map<Object, Object> map);

    /**
     * getOfQuery()
     *
     * @param path
     * @param data
     * @return
     */
    @GET("{path}")
    Call<BaseResponse> getOfQuery(@Path("path") String path, @Query("data") String data);
}

